"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SPACE_PERMISSION_ENUM = exports.SPACE_ROLE_OPTIONS = exports.SPACE_ROLE_MAP = exports.SPACE_ROLE_ENUM = exports.SPACE_TYPE_OPTIONS = exports.SPACE_TYPE_MAP = exports.SPACE_TYPE_ENUM = exports.SPACE_LEVEL_OPTIONS = exports.SPACE_LEVEL_MAP = exports.SPACE_LEVEL_ENUM = void 0;
// 空间级别枚举
exports.SPACE_LEVEL_ENUM = {
    COMMON: 0,
    PROFESSIONAL: 1,
    FLAGSHIP: 2,
};
// 空间级别文本映射
exports.SPACE_LEVEL_MAP = {
    0: '普通版',
    1: '专业版',
    2: '旗舰版',
};
// 空间级别选项映射
exports.SPACE_LEVEL_OPTIONS = Object.keys(exports.SPACE_LEVEL_MAP).map(function (key) {
    var value = Number(key); // Convert string key to number
    return {
        label: exports.SPACE_LEVEL_MAP[value],
        value: value,
    };
});
// 空间类型枚举
exports.SPACE_TYPE_ENUM = {
    PRIVATE: 0,
    TEAM: 1,
};
// 空间类型文本映射
exports.SPACE_TYPE_MAP = {
    0: '私有空间',
    1: '团队空间',
};
// 空间类型选项映射
exports.SPACE_TYPE_OPTIONS = Object.keys(exports.SPACE_TYPE_MAP).map(function (key) {
    var value = Number(key); // 将字符串 key 转换为数字
    return {
        label: exports.SPACE_TYPE_MAP[value],
        value: value,
    };
});
// 空间角色枚举
exports.SPACE_ROLE_ENUM = {
    VIEWER: "viewer",
    EDITOR: "editor",
    ADMIN: "admin",
};
// 空间角色文本映射
exports.SPACE_ROLE_MAP = {
    viewer: "浏览者",
    editor: "编辑者",
    admin: "管理员",
};
// 空间角色选项映射
exports.SPACE_ROLE_OPTIONS = Object.keys(exports.SPACE_ROLE_MAP).map(function (key) {
    return {
        label: exports.SPACE_ROLE_MAP[key],
        value: key,
    };
});
/**
 * 空间权限常量
 */
exports.SPACE_PERMISSION_ENUM = {
    SPACE_USER_MANAGE: "spaceUser:manage",
    PICTURE_VIEW: "picture:view",
    PICTURE_UPLOAD: "picture:upload",
    PICTURE_EDIT: "picture:edit",
    PICTURE_DELETE: "picture:delete",
};
